package com.spring.demo5;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

/**
 * @author wdd-think
 */
public class HelloWorld {
	private String message;
	public void setMessage(String message){
		this.message = message;
	}
	public String getMessage(){
		System.out.println("Your Message : " + message);
		return message;
	}
	//@PostConstruct
	public void init(){
		System.out.println("Bean is going through init初始化.");
	}
	@PreDestroy
	public void destroy(){
		System.out.println("Bean will destroy now销毁.");
	}
	
}

